package com.fit.dao.professor;

import java.util.List;

import org.apache.tapestry5.hibernate.annotations.CommitAfter;
import org.hibernate.criterion.Restrictions;

import com.fit.entities.professor.Professor;
import com.fit.entities.user.User;

public interface ProfessorDAO {

	@CommitAfter
	public boolean save(Professor newProfessor);

	@CommitAfter
	public boolean delete(Professor professor);

	@CommitAfter
	public boolean update(Professor professor);

	public List<Professor> findAll();

	public Professor findByFirstNameAndLastName(String firstName, String lastName);

	public Professor findByID(Long id);

	@CommitAfter
	public boolean deleteByID(Long id);
	public List findByUser();
}
